﻿using A.M.Storage.Application;
using AutoMapper;
using J.M.Inventory.Application.IInventoryServices;
using J.M.Inventory.Domain.Entity;
using J.M.Inventory.Infrastruecure.IInventoryRepository;

namespace J.M.Inventory.Application.InventoryServices
{
    public class Enter_warehouseServices:BaseServices<enter_warehouse, string>, IEnter_warehouseServices
    {
        /// <summary>
        /// 入库类型的服务层类
        /// </summary>
        private readonly IEnter_warehouseRepository enter_WarehouseRepository;
        private readonly IMapper mapper;
        public Enter_warehouseServices(IEnter_warehouseRepository enter_WarehouseRepository, IMapper mapper) : base(enter_WarehouseRepository)
        {
            this.mapper=mapper;
            this.enter_WarehouseRepository = enter_WarehouseRepository;
        }
        /// <summary>
        /// 查看所有的入库类型
        /// </summary>
        /// <returns></returns>
       public  async Task<List<enter_warehouse>> GetWarehouse()
        {
            var list = await enter_WarehouseRepository.GetShowInforAsync();
            return list;
        }
    }
}
